<div class="febs-container" id="peccancyAuditRecord-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="peccancyAuditRecord-edit-form">
            <div class="workflow-review-body">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" id="user_field">违章人员信息</blockquote>
                    <div class="layui-card-body">
                        <div class="layui-form-item febs-hide">
                            <div class="layui-row">
                                <div class="layui-col-xs6">
                                    <label class="layui-form-label febs-form-item-require">id：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="informationId" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-col-xs6">
                                    <label class="layui-form-label febs-form-item-require">公司Id：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                                               maxlength="32">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">

                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章对象：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyRealName}"></div>
                            </div>

                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">身份证号：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyUserIdentificationNo}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">人员工号：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyUserNo}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">所属部门：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyUserDept}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">岗位名称：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyUserPostName}"></div>
                            </div>
                        </div>
                        <div th:if="${peccancyInformation.peccancyObject eq '2'}">
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">所属承包方：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${peccancyInformation.peccancyUserContractorName}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">所属承包队：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${peccancyInformation.peccancyUserContractorTeamName}"></div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail" style="color: red">违章次数：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${countYear.yearCount}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail" style="color: red">扣减金额：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     data-th-text="${countYear.amountCount}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail" style="color: red">扣减分数：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${countYear.scoreCount}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail" style="color: red">视频学习：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${countYear.videoCount}"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" id="project_field">违章项目信息
                    </blockquote>
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章单号：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyNo}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">所属公司：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyNo}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">所属业务：</label>
                                <div th:switch="${peccancyInformation.businessType}">
                                    <div th:case="1" class="layui-input-block layui-input-block-html">海工</div>
                                    <div th:case="2" class="layui-input-block layui-input-block-html">修船</div>
                                    <div th:case="3" class="layui-input-block layui-input-block-html">造船</div>
                                    <div th:case="4" class="layui-input-block layui-input-block-html">场地</div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">项目名称：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.projectName}">

                                </div>
                            </div>
                            <!--                        <div class="layui-col-md6">-->
                            <!--                            <label class="layui-form-label layui-form-label-detail">违章地点：</label>-->
                            <!--                            <div class="layui-input-block" th:text="${peccancyInformation.peccancyAxis}"></div>-->
                            <!--                        </div>-->
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章区域：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyArea}"></div>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" id="peccancy_field">违章信息</blockquote>
                    <div class="layui-card-body">

                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章类型：</label>
                                <div class="layui-input-block layui-input-block-html" id="peccancyType"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">作业类别：</label>
                                <div class="layui-input-block layui-input-block-html" id="jobOperation"></div>
                            </div>

                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章原因：</label>
                                <div class="layui-input-block layui-input-block-html" id="peccancyRootCause"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章性质：</label>
                                <div th:switch="${peccancyInformation.peccancyNature}">
                                    <div th:case="1" class="layui-input-block layui-input-block-html">一般</div>
                                    <div th:case="2" class="layui-input-block layui-input-block-html">较重</div>
                                    <div th:case="3" class="layui-input-block layui-input-block-html">严重</div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">违章时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.peccancyTime}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">是否现场：</label>
                                <div th:switch="${peccancyInformation.isScene}">
                                    <div th:case="1" class="layui-input-block layui-input-block-html">是</div>
                                    <div th:case="0" class="layui-input-block layui-input-block-html">否</div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">

                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">条款类型：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.clauseName}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">处理形式：</label>
                                <div class="layui-input-block layui-input-block-html" id="disposeForm"></div>
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">惩罚原因：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.reason}"></div>
                            </div>

                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">照片：</label>
                                <div class="layui-input-block layui-input-block-html">
                                    <div id="fileUpload" style="height: 120px ;width: 100%">
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail"
                                       style="width: 84px">违章人签名：</label>
                                <div class="layui-input-block layui-input-block-html" style="margin-left: 114px">
                                    <img id="peccancyUserSignImg" alt="" data-th-src="'/'+${peccancyInformation.peccancyUserSign}"
                                         th:if="${peccancyInformation.peccancyUserSign}"
                                         style="width: 120px ;height: 50px"/>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">开单人：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.invoiceRealName}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">开单时间：</label>
                                <div class="layui-input-block layui-input-block-html"
                                     th:text="${peccancyInformation.invoiceDate}"></div>
                            </div>

                        </div>
                    </div>
                </div>
                <div th:if="${peccancyInformation.auditList} and ${peccancyInformation.auditList.size() > 0}">
                    <div class="layui-card">
                        <blockquote class="layui-elem-quote layui-elem-quote-primary">审核记录</blockquote>
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <table lay-filter="peccancyAuditRecordTable" id="peccancyAuditRecordTable"
                                       lay-data="{id: 'peccancyAuditRecordTable'}"></table>
                            </div>
                        </div>
                    </div>
                </div>
                <div th:if="${peccancyInformation.appeaFlg eq '1'}">
                    <div class="layui-card">
                        <blockquote class="layui-elem-quote layui-elem-quote-primary" id="appeal_field">申诉信息
                        </blockquote>
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">申诉信息：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${peccancyInformation.appealReason}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">申诉人：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${peccancyInformation.appealRealName}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">申诉时间：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${peccancyInformation.appealTime}"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div th:if="${peccancyInformation.issuanceList} and ${peccancyInformation.issuanceList.size() > 0}">
                    <div class="layui-card">
                        <blockquote class="layui-elem-quote layui-elem-quote-primary">签发记录</blockquote>
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <table lay-filter="peccancyIssuanceRecordTable" id="peccancyIssuanceRecordTable"
                                       lay-data="{id: 'peccancyIssuanceRecordTable'}"></table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" id="audtit_field">审核</blockquote>
                    <div class="layui-card-body">
                        <div class="layui-form-item" th:if="!${workflowApplyId}">
                            <div class="layui-col-md6">
                                <label class="layui-form-label">审核结果：</label>
                                <input type="radio" name="status" lay-filter="audit-result" title="审核通过" value="4"
                                       checked>
                                <input type="radio" name="status" lay-filter="audit-result" title="审核退回" value="3">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label">违章性质：</label>
                                <input type="radio" name="peccancyNature" title="一般" value="1" checked>
                                <input type="radio" name="peccancyNature" title="较重" value="2">
                                <input type="radio" name="peccancyNature" title="严重" value="3">
                            </div>
                        </div>
                        <div class="layui-form-item" id="learnFlg">
                            <label class="layui-form-label">处理方式：</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="learnVideoFlg" id="learnVideoFlg" title="视频教育"
                                       lay-skin="primary">
                            </div>
                        </div>
                        <div class="layui-form-item" id="amountFlg">
                            <div class="layui-input-block">
                                <div class="layui-row">
                                    <div th:if="${peccancyInformation.penaltyAmountStatus} eq '1'">
                                        <div class="layui-col-md2">
                                            <input type="checkbox" name="penaltyAmountFlg" lay-filter="penaltyAmountFlg"
                                                   lay-skin="primary" checked disabled title="考核减扣">
                                        </div>
                                        <div class="layui-col-md4">
                                            <input type="text" name="penaltyAmount" autocomplete="off"
                                                   class="layui-input"
                                                   placeholder="请填写金额"
                                                   lay-verify="amount" disabled
                                                   data-th-value="${peccancyInformation.finallyPenaltyAmount}"
                                                   onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">

                                        </div>
                                    </div>
                                    <div th:if="${peccancyInformation.penaltyAmountStatus} eq '0'">
                                        <div class="layui-col-md2">
                                            <input type="checkbox" name="penaltyAmountFlg" lay-filter="penaltyAmountFlg"
                                                   lay-skin="primary" title="考核减扣">
                                        </div>
                                        <div class="layui-col-md4">
                                            <input type="text" name="penaltyAmount" id="penaltyAmount"
                                                   autocomplete="off"
                                                   class="layui-input"
                                                   placeholder="请填写金额"
                                                   lay-verify="amount" disabled
                                                   onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">

                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item" id="scoreFlg">
                            <div class="layui-input-block">
                                <div class="layui-row">
                                    <div class="layui-col-md2">
                                        <input type="checkbox" name="penaltyScoreFlg" id="penaltyScoreFlg"
                                               lay-filter="penaltyScoreFlg" lay-skin="primary" title="扣除个人积分">
                                    </div>
                                    <div class="layui-col-md4">
                                        <input type="text" name="penaltyScore" autocomplete="off" class="layui-input"
                                               placeholder="请填写扣除积分"
                                               lay-verify="amount" disabled
                                               onkeyup="value=value.replace(/[^\d{1,}\d{1,}|\d{1,}]/g,'').replace(/\./g,'').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">

                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label" id="auditRemark">审核理由：</label>
                                <div class="layui-input-block">
                                <textarea type="text" name="auditRemark" autocomplete="off" class="layui-textarea"
                                          minlength="2"
                                          maxlength="255" placeholder="请输入审核理由"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <button class="layui-btn" lay-submit="" lay-filter="peccancyAuditRecord-edit-form-submit"
                            id="submit"></button>
                    <button type="reset" class="layui-btn" id="reset"></button>
                </div>
            </div>
            <!--    走线上流程-->
            <div class="workflow-review-button-container" th:if="${workflowApplyId}">
                <button type="submit" class="layui-btn layui-btn-primary layui-bg-green" lay-submit=""
                        lay-filter="onlinePass">通过
                </button>
                <button type="submit" class="layui-btn layui-btn-primary layui-bg-orange" lay-submit=""
                        lay-filter="onlineBack">退回
                </button>
                <button type="submit" class="layui-btn layui-btn-primary" onclick="closePage()">关闭
                </button>
            </div>
            <!--    走线下流程-->
            <div class="workflow-review-button-container" th:if="!${workflowApplyId}">
                <button type="submit" lay-submit="" class="layui-btn layui-btn-primary layui-bg-green"
                        lay-filter="local-submit">提交
                </button>
                <button type="submit" class="layui-btn layui-btn-primary" onclick="closePage()">关闭
                </button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var peccancyInformation = [[${peccancyInformation}]];
    var workflowApplyId = [[${workflowApplyId}]];
    var workflowApply = [[${workflowApply}]];
    var workflowNode = [[${workflowNode}]];
</script>
<script th:src="@{/febs/js/peccancy/peccancyAuditRecord/peccancyAuditRecordEdit.js(v=1)}"></script>